package com.annotation.service;

import com.annotation.dao.TestDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

@Service

public class TestService {

    @Autowired(required = false)
//    @Qualifier("testDao")
    TestDao  dao;

    @Override
    public String toString() {
        return "TestService{" +
                "dao=" + dao +
                '}';
    }
}
